home *** CD-ROM | disk | FTP | other *** search
- property Sp, myPath, myListEntry, myTitle, myToolTip
- global rollcolor, gFullPath, gRootPath, gDiv, finalChan, gMenuList, SectionPath, SectionNumber
-
- on Initialize me, aNumber, aAction, aListEntry, aItemTitle
- Sp = sprite(aNumber)
- myPath = aAction
- myTitle = aItemTitle
- myListEntry = aListEntry
- myToolTip = EMPTY
- case myPath.char[1] of
- "[":
- myToolTip = "Click here to go online..."
- end case
- end
-
- on mouseEnter me
- cursor(280)
- Sp.member = member("main_over", "GFX")
- if myToolTip <> EMPTY then
- member("tooltip_back").regPoint = point(0, 0)
- lc = _movie.channel.count
- tipLoc = Sp.loc + point(0, 30)
- channel(lc - 1).makeScriptedSprite(member("tooltip_back"), tipLoc)
- if myToolTip <> EMPTY then
- member("tooltip_text").text = myToolTip
- else
- member("tooltip_text").text = "Click to go online..."
- end if
- channel(lc).makeScriptedSprite(member("tooltip_Text"), tipLoc + point(5, 1))
- sprite(lc).ink = 36
- end if
- end
-
- on mouseLeave me
- Sp.member = member("main_button", "gfx")
- lc = _movie.channel.count
- channel(lc - 1).removeScriptedSprite()
- channel(lc).removeScriptedSprite()
- cursor(-1)
- Sp.color = rgb(0, 0, 0)
- end
-
- on mouseUp me
- repeat with i = finalChan to _movie.channel.count
- channel(i).removeScriptedSprite()
- end repeat
- if myPath.char[1] = "<" then
- pmarker = myPath.char[2..myPath.char.count - 1]
- go(marker(pmarker))
- else
- if myPath.char[1] = "[" then
- pURL = myPath.char[2..myPath.char.count - 1]
- gotoNetPage(pURL)
- else
- if myPath.char[1] = "{" then
- pMovieTarget = myPath.char[2..myPath.char.count - 1]
- go(1, gRootPath & "menu" & gDiv & "Scenes" & gDiv & pMovieTarget)
- else
- if myPath.char[1] = "(" then
- pLinkTarget = myPath.char[2..myPath.char.count - 1]
- theLink = pathReplace(gRootPath & "DiscContent" & gDiv & pLinkTarget)
- put theLink
- gotoNetPage("file:///" & theLink)
- else
- if myPath contains "gallery" then
- pmarker = "gallery"
- SectionNumber = myListEntry
- gFullPath = gRootPath & "DiscContent" & gDiv & gMenuList[myListEntry].ItemPath & gDiv
- go(marker(pmarker))
- else
- grabDetails()
- end if
- end if
- end if
- end if
- end if
- end
-
- on pathReplace aPath
- ret = EMPTY
- if the platform contains "mac" then
- repeat with i = 1 to aPath.char.count
- if aPath.char[i] = ":" then
- ret = ret & "/"
- next repeat
- end if
- ret = ret & aPath.char[i]
- end repeat
- return ret
- else
- ret = ret & gRootPath.char[1..2]
- repeat with i = 3 to aPath.char.count
- if aPath.char[i] = ":" then
- ret = ret & "/"
- next repeat
- end if
- ret = ret & aPath.char[i]
- end repeat
- return ret
- end if
- end
-
- on grabDetails
- member("SectionTitle").text = myTitle
- pLine = 1
- lH = 20
- lV = 225
- SectionPath = gMenuList[myListEntry].ItemPath
- SectionNumber = myListEntry
- if gMenuList[myListEntry].ItemList.count > 0 then
- fullPath = gRootPath & "DiscContent" & gDiv & SectionPath & gDiv & gMenuList[SectionNumber].ItemList[1].ItemPath & gDiv
- gFullPath = fullPath
- generateProductPage(fullPath)
- repeat with i = 1 to the number of castMembers of castLib "SubItems"
- if member(i, "subItems").name contains myTitle then
- channel(finalChan + pLine).removeScriptedSprite()
- channel(finalChan + pLine).makeScriptedSprite(member(i, "subItems"), point(lH, lV))
- sprite(finalChan + pLine).scriptInstanceList = []
- add(sprite(finalChan + pLine).scriptInstanceList, new(script("Sub_Item_Rollover"), 1))
- _movie.sendSprite(finalChan + pLine, #Initialize, finalChan + pLine, pLine)
- sprite(finalChan + pLine).ink = 36
- lV = lV + 25
- pLine = pLine + 1
- end if
- end repeat
- fullPath = gRootPath & "DiscContent" & gDiv & SectionPath & gDiv & gMenuList[SectionNumber].ItemList[1].ItemPath & gDiv
- gFullPath = fullPath
- go(marker("software"))
- end if
- end
-